from datetime import datetime
date = datetime.now()
date = str(date)[0:16]
date = date.replace(' ','_')
date = date.replace(':','_')
# print(date)
def config_bkp(namet,configt):
    config = open('d:/michael/Videos/' + namet +'_'+ date +'.txt', mode='w+')
    config.write(configt)
    config.close()
    print(namet + ' config backup finished')

